package com.yb.xczx.cloud.content.task;

import com.yb.xczx.cloud.content.service.ICourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class CourseCategoryTask implements ApplicationRunner {
    @Autowired
    ICourseCategoryService courseCategoryService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        courseCategoryService.treeNodes();
    }
}
